using UnityEngine;
using System.Collections;

public class scoreBonusScript : MonoBehaviour
{

    private GameObject ship;
    public int attractNumber;

    void Start()
    {
        attractNumber = 0;
        ship = GameObject.Find("ship");
        guiText.enabled = false;
    }


    void Update()
    {
        shipControllerScript shipScript = ship.GetComponent<shipControllerScript>();
        attractNumber = shipScript.attractNumber;


        if (attractNumber != 0 && attractNumber != 1)
        {
            string format = System.String.Format("Combo x {0}", attractNumber);
            guiText.text = format;
            guiText.enabled = true;

        }
        else
            guiText.enabled = false;
    }
}